package com.milotnt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.milotnt.enums.DeviceStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "设备实体类")
@TableName("device")
@Data
public class DeviceEntity extends BaseEntity{

    @Schema(description = "产品id")
    @TableField("product_id")
    private Integer productId;

    @Schema(description = "设备名称")
    @TableField("device_name")
    private String deviceName;

    @Schema(description = "设备位置")
    @TableField("device_location")
    private String deviceLocation;

    @Schema(description = "设备状态")
    @TableField("device_status")
    private DeviceStatusEnum deviceStatus;

    @Schema(description = "设备信息")
    @TableField("device_message")
    private String deviceMessage;
}
